public class main2 {
    public static void main(String[] args) {
        try{
            int[] arr={1,2,3,4};
            System.out.println(arr[4]);
        }catch(Exception e){
            e.printStackTrace();
        }
        System.out.println("后续代码");
    }
}
